package org.zxw.cms.service;

import java.util.List;

import org.zxw.basic.model.Pager;
import org.zxw.cms.model.Group;
import org.zxw.cms.model.Role;
import org.zxw.cms.model.User;

public interface IUserService {
	public void add(User user, Integer[] roleIds, Integer[] groupIds);

	public void delete(int userId);

	public void update(User user, Integer[] roleIds, Integer[] groupIds);

	public void updateStatus(int userId);

	public Pager<User> findUser();

	public User load(int userId);

	public List<Role> listUserRoles(int userId);

	public List<Group> listUserGroups(int userId);

	public List<Integer> listUserRoleIds(int userId);

	public List<Integer> listUserGroupIds(int userId);

	public List<User> listGroupUsers(int groupId);

	public List<User> listRoleUsers(int roleId);
}
